Developer Documentation

QuickTime 4 API Documentation

QuickTime Music Architecture

| Previous | Chapter Contents | Chapter Top | Next |

Playing Notes With the Note Allocator

Playing a few notes with the note allocator component is simple and straightforward. To play notes that have a piano sound, for example, you need to open up the note allocator component, allocate a note channel with a request for piano, and play. When you've finished playing notes, you dispose of the note channel and close the note allocator component. The code to accomplish this is shown in Listing 0-2 . Before working through the code, you need to look at some important related data structures.

Note-Related Data Structures

Playing Piano Sounds With the Note Allocator


© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |